#include <iostream>
#include <ctime>
#include <iomanip>
int n = 100;
using namespace std;
namespace wangxingxing
{
    char *getNow()
    {
        time_t t1;
        time(&t1);
        return ctime(&t1);
    }
    char *getGMtime()
    {
        time_t t1;
        time(&t1);
        struct tm *st1 = gmtime(&t1);
        return asctime(st1);
    }
}

using wangxingxing::getGMtime;
using wangxingxing::getNow;

int main()
{
    /*char *buf=getNow();
    cout << "now time is:" << buf <<"\n";
    buf=getGMtime();
    cout << "now GMtime is:" <<buf <<"\n";

    int *p = new int(100);
    cout << "*p=" << *p << endl;

    int *p1 = new int[10];
    for (int i = 0; i < 10; i++)
    {
        p1[i] = i;
    }
    for (int i = 0; i < 10; i++)
    {
        cout << "p[i]=" << p1[i] << " ";
    }
    cout << endl;
    delete[] p1;//释放数组必须在前面加p1;
    */
    int n = 10;
    cout << setfill('*') << setw(5) << ::n << endl;
    cout << setw(5) << n << endl;
    cout << setw(10) << "wxx" <<endl;
    
    return 0;
}